import instance from "@/util/axios";

export const getStudentList = () => instance.get('/songs/list')

export const getStudentByPage = (page, pageSize) => instance.get('/songs/findByPage/${page}/${pageSize}')

export const searchStudentByPage = (page, pageSize, data) =>
  instance.post(`/songs/search/${page}/${pageSize}`, data)

export const addStudent = (data) =>
  instance.post('/songs/add', data)

export const updateStudent = (data) =>
  instance.put('/songs/update', data)

export const deleteStudent = (studentIds) =>
  instance.delete(`/songs/delete/${studentIds}`)
